﻿#pragma once
#include "d3d11.h"
#include "d3dx11.h"
#include "../Constants/windowConstants.h"

class Graphics
{
public:
    Graphics(HWND hwnd);
    Graphics(const Graphics&) = delete;
    Graphics& operator=(const Graphics&) = delete;
    ~Graphics();
    void EndFrame();
private:
    void DrawTestTriangle();

    // dx设备
    ID3D11Device* _pDevice = nullptr;
    
    // 交换链
    IDXGISwapChain* _pSwap = nullptr;
    // 上下文
    ID3D11DeviceContext* _pContext = nullptr;
    // 绘制区域
    ID3D11RenderTargetView* _pRenderTargetView = nullptr;
};
